package com.only4play.practice.ordercenter.core.domainservice;

import com.only4play.practice.ordercenter.api.model.domainmodel.OrderCompleteModel;
import com.only4play.practice.ordercenter.api.model.domainmodel.OrderCreateModel;
import com.only4play.practice.ordercenter.api.model.domainmodel.OrderReviseModel;

/**
 * @author mengdy
 */
public interface IOrderDomainService {

  /**
   * 创建订单
   * @param createModel
   * @return
   */
  boolean orderCreate(OrderCreateModel createModel);

  /**
   * 订单修订
   * @param reviseModel
   * @return
   */
  boolean orderRevise(OrderReviseModel reviseModel);

  /**
   * 订单完成
   * @return
   */
  boolean orderComplete(OrderCompleteModel completeModel);

  /**
   * 订单取消
   * @return
   */
  boolean orderCancel(Long flowNo);

}
